package lab02.test15;

public class test {
    public static void main(String[] args) {
        Graduate zhangsan = new Graduate();
        zhangsan.pay = 10000;
        zhangsan.fee = 6000;
        System.out.println(zhangsan.getFee());

        if (zhangsan.getPay()-zhangsan.getFee() < 2000){
            System.out.println("You  need a loan!");
        }else{
            System.out.println("You income is enough！");
        }

    }
}
